<script>
import { Autocomplete } from "element-ui";
export default {
  extends: Autocomplete,
  methods: {
    select(item) {
      this.$emit("input", item[this.valueKey]);
      this.$emit("select", item);
      this.$nextTick((_) => {
        // this.suggestions = [];
        this.highlightedIndex = -1;
      });
    },
    controlClose() {
      this.suggestions = [];
    },
  },
};
</script>
<style scoped lang="scss"></style>
